package com.aabte.springcloudlearn.feigncustomerdemo.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @author Daniel
 */
@Configuration
public class MainConfig {
    /**
     * 指定Feign的默认日志输出级别，默认：{@link Logger.Level#NONE}
     * @return 日志输出级别
     */
    @Primary
    @Bean
    public Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }
}
